import request from '@/utils/request'

function orderReturn(id) {
  return request({
    url: `/lejuAdmin/orderReturn/${id}`
  })
}

function agreeApply(id, data) {
  return request({
    url: `/lejuAdmin/orderReturn/agreeApply/${id}`,
    method: 'post',
    data
  })
}

function receiveProduct(id, data) {
  return request({
    url: `/lejuAdmin/orderReturn/receiveProduct/${id}`,
    method: 'post',
    data
  })
}

function rejectApply(id, data) {
  return request({
    url: `/lejuAdmin/orderReturn/rejectApply/${id}`,
    method: 'post',
    data
  })
}

export {
  orderReturn,
  agreeApply,
  receiveProduct,
  rejectApply
}
